import request from '../utils/request'

/**
 * 登录日志列表
 * @param current
 * @param size
 * @returns {AxiosPromise}
 */
export const loginLogList= (current,size,loginLogVO) => {
    return request({
        url: '/login-log/getList',
        method: 'post',
        params: {
            current,size
        },
        data: loginLogVO
    })
}

/**
 *  插入日志
 * @returns {AxiosPromise}
 */
export const insertLoginLog = () => {
    return request({
        url: '/login-log/insert',
        method: 'post'
    })
}

/**
 * 更具ID查询id
 * @param id
 * @returns {AxiosPromise}
 */
export const deleteLoginLogId = (id) => {
    return request({
        url: '/login-log/deleteById',
        method: 'post',
        params: {
            id
        }
    })
}

/**
 * 批量删除登录日志
 * @param ids
 * @returns {AxiosPromise}
 */
export const deleteLoginLogIDs = (ids) => {
    return request({
        url: '/login-log/batchDelete',
        method: 'post',
        params: {
            ids
        }
    })
}